package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.DiySql;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

import java.util.List;
import java.util.Map;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_diySqlMapper")
@Scope("singleton")
@Lazy(true)
public interface DiySqlMapper extends Mapper<DiySql> {

    List<Map<String,Object>> selDiyList(@Param("sql") String sql);

    int insertDiy(@Param("sql") String sql);

    int updateDiy(@Param("sql") String sql);

    int deleteDiy(@Param("sql") String sql);
}
